package cn.lg.soar.boot.fc.service;

import cn.lg.soar.boot.fc.entity.vo.FcTreeVo;
import cn.lg.soar.common.model.HttpResult;
import cn.lg.soar.common.model.PageQuery;
import cn.lg.soar.common.model.PageResult;
import cn.lg.soar.database.base.service.IBaseService;
import cn.lg.soar.boot.fc.entity.Lesseemanage;
import cn.lg.soar.database.query.QueryParams;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * 承租人管理表
 * @author BoBo
 * @since 2025-02-05
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public interface LesseemanageService extends IBaseService<Lesseemanage> {

    /**
     * 添加承租人信息
     */
    HttpResult<Serializable> addLesseeManage(Lesseemanage lesseemanage);

    /**
     *  修改承租人信息
     */
    HttpResult<Serializable> updateLesseeManage(Lesseemanage lesseemanage);

    /**
     * 获取 tree
     * @param pageQuery
     * @return
     */
    PageResult<FcTreeVo> queryResultVo (PageQuery pageQuery, QueryParams params);

    /**
     * 通过name 获取
     * @param name
     * @return
     */
    Lesseemanage getByName (String name);

    /**
     * 通过name 获取
     * @param id
     * @return
     */
    Lesseemanage getOneById (Long id);

    /**
     * 拖拽排序
     */
    HttpResult<Serializable> updateSort(List<Map<String, BigInteger>> sortedData);

}
